<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <title>JavaWeb干货</title>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/liujun0128/blog@master/static/js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="https://cdn.jsdelivr.net/gh/liujun0128/blog@master/static/js/common.js"></script>
</head>
<body>

<div style="width: 100%;text-align: center;">
    <img style="width: auto;height: auto;margin: 0 auto"
         th:src="'data:image/png;base64,' + ${imgs}">
</div>
<script type="text/javascript" th:inline="javascript">
    const tk = [[${tk}]]
    $(function () {
        const timer = setInterval(function () {
            $.get("/blog/login", {
                tk: tk
            }, function (res) {
                if (res.data != 0) {
                    setSeesionToken(res.data[tokenKey])
                    setUser(res.data.uInfo)
                    clearInterval(timer)
                }
            })
        }, 2000)
        setTimeout(function () {
            clearInterval(timer)
        }, 3 * 60 * 1000)
    })
</script>
</body>
</html>